package com.ep.thirdPlatformProject.dhg.mapstruct;


import com.ep.thirdPlatformProject.dhg.entity.DhgDepartmentEntity;
import com.ep.thirdPlatformProject.dhg.entity.vo.DhgDepartmentVO;
import org.mapstruct.Mapper;

import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import org.mapstruct.factory.Mappers;

@Mapper
public interface DhgDepartmentConvertMapper {

    DhgDepartmentConvertMapper INSTANCE = Mappers.getMapper(DhgDepartmentConvertMapper.class);


    @Mappings({
            @Mapping(target = "targetPathName",source = "thirdLevePathName",defaultValue = "路径不能为空的哦！"),
    })
    DhgDepartmentVO convert2VO(DhgDepartmentEntity entity);

}
